﻿function uploadimg(category, txt) {
    $.dialog({
        width: '450px',
        height: '250px',
        id: 'uploadimg',
        title: '上传图片',
        titleIcon: 'lhgcore.gif',
        content: 'url:../PublicWeb/UploadImg.aspx?random=' + Math.random() + '&Type=images&Category=' + category + '&return=' + txt + '&ReName=1',
        lock: true,
        fixed: true,
        resize: false,
        drag: true,
        max: false,
        min: false,
        parent: api
    });
}

function Win_UserinfoView(id, UserType) {
    $.dialog({
        width: '1200px',
        height: '500px',
        id: 'choose',
        title: '用户信息',
        titleIcon: 'lhgcore.gif',
        content: 'url:../User/UserInfoView.aspx?random=' + Math.random() + '&ID=' + id + '&UserType=' + UserType,
        lock: true,
        fixed: true,
        resize: false,
        drag: true,
        max: false,
        min: false
    });
}


function Win_OranAdd() {
    $.dialog({
        width: '600px', height: '500px',
        id: "添加组织机构", title: '添加组织机构',
        content: 'url:../User/OrganizationListAdd.aspx?random=' + Math.random(),
        lock: true
    });
}

function Win_OranEdit(id) {
    $.dialog({
        width: '600px', height: '500px',
        id: "编辑执法人员", title: '编辑执法人员',
        content: 'url:../User/OrganizationListAdd.aspx?random=' + Math.random() + '&id=' + id,
        lock: true
    });
}

function Win_ShowCyzgz(cyzgzh) {
    $.dialog({
        width: '1000px', height: '500px',
        id: "查看从业资格证", title: '查看从业资格证',
        content: 'url:../Driver/ShowCyzgz.aspx?random=' + Math.random() + '&cyzgzh=' + cyzgzh,
        lock: true
    });
}


//
function Win_DriverScoreRecordList(id) {
    $.dialog({
        width: '1200px',
        height: '500px',
        id: 'kfjl',
        title: '查看扣分记录',
        titleIcon: 'lhgcore.gif',
        content: 'url:../DriverScore/Win_DriverScoreRecordList.aspx?random=' + Math.random() + '&DriverID=' + id,
        lock: true,
        fixed: true,
        resize: false,
        drag: true,
        max: false,
        min: false
    });
}
function Win_DriverScoreEdit(id) {
    $.dialog({
        width: '1000px', height: '500px',
        id: "编辑扣分信息", title: '编辑扣分信息',
        content: 'url:../DriverScore/DriverScoreEdit.aspx?random=' + Math.random() + '&id=' + id,
        lock: true
    });
}

//行政复核
function Win_FuYi(id) {
    $.dialog({
        width: '1000px', height: '500px',
        id: "申请行政复核", title: '申请行政复核',
        content: 'url:../Reconsideration/Add.aspx?random=' + Math.random() + '&id=' + id,
        lock: true
    });
}
//法律法规
function Win_SelectLawsList() {
    $.dialog({
        width: '1100px', height: '500px',
        id: "选择法律条款", title: '选择法律条款',
        content: 'url:../Law/Win_SelectLawsList.aspx?random=' + Math.random(),
        lock: true
    });
}

function Win_OrganizationChoose() {
    $.dialog({
        width: '1000px', height: '500px',
        id: "选择执法人员", title: '选择执法人员',
        content: 'url:../User/Win_OrganizationChoose.aspx?random=' + Math.random(),
        lock: true
    });
}


function Win_LawsAdd() {
    $.dialog({
        width: '500px', height: '320px',
        id: "添加法律条款", title: '添加法律条款',
        content: 'url:../Law/LawAdd.aspx?random=' + Math.random(),
        lock: true
    });
}

function Win_LawsEdit(id) {
    $.dialog({
        width: '500px', height: '320px',
        id: "修改法律条款", title: '修改法律条款',
        content: 'url:../Law/LawAdd.aspx?random=' + Math.random() + '&ID=' + id,
        lock: true
    });
}

//function show_RightButtom() {
//    $.dialog({
//        id: 'msg',
//        title: '消息',
//        content: '共记分人数：5 人 </br> 其中：记15分-20分的1人 <a href="#"  onclick="show_MonitorList()">详情</a> </br> 其中：记20分（含）以上的2人 <a href="#"  onclick="show_BlackList()">详情</a>',
//        width: '300',
//        height: '200',
//        top: '100%',
//        left: '100%',
//        fixed: true,
//        drag: false,
//        resize: false,
//        time: 5, max: false, min: false
//    });
//}


//重点监控名单
function show_MonitorList() {
    $.dialog({
        width: '800px',
        height: '500px',
        id: 'choose',
        title: '重点监控名单',
        titleIcon: 'lhgcore.gif',
        content: 'url:../DriverMonitor/MonitorList.aspx?type=1',
        lock: true,
        fixed: true,
        resize: false,
        drag: true,
        max: false,
        min: false
    });
}
//黑名单
function show_BlackList() {
    $.dialog({
        width: '800px',
        height: '500px',
        id: 'choose',
        title: '黑名单',
        titleIcon: 'lhgcore.gif',
        content: 'url:../DriverMonitor/MonitorList.aspx?type=2',
        lock: true,
        fixed: true,
        resize: false,
        drag: true,
        max: false,
        min: false
    });
}